using System;

namespace Ley.Common.Framework
{
	public static class Protect
	{
		public static void Against<TException>(bool expression, string message) where TException : Exception
		{
			if (expression)	
				throw (TException)Activator.CreateInstance(typeof(TException), message);	
		}
	}
}
